package com.ruan.dao;

import com.ruan.entity.Comments;
import com.ruan.query.CommentsQuery;
import com.ruan.vo.CommentsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:CommentsMapper
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/4 12:13
 **/
@Repository
public interface CommentsMapper {
    int addComments(Comments comments);

    List<CommentsVo> getCommentsList(CommentsQuery commentsQuery);

    int deleteComments(Integer id);

    int deleteCommentsByIds(@Param("ids") Integer[] ids);
}
